package com.zhangwei.expands.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.base.lib.adapter.CommonAdapter;
import com.zhangwei.expands.R;
import com.zhangwei.expands.bean.Activities;

import java.util.List;

/**
 * @version V1.0
 * @description:
 * @title: Expands
 * @package com.zhangwei.expands.adapter
 * @author: zhangwei
 * @date: 2015-12-14 下午2:58
 */
public class DemoAdapter extends CommonAdapter<Activities> {

    public DemoAdapter(List<Activities> list, Context context) {
        super(list, context);
    }

    @Override
    public ViewHolder getViewHolder(int position, View convertView, ViewGroup parent) {
        ViewHolder vh = ViewHolder.get(context, convertView, parent, R.layout.item_list_layout);
        vh.setText(list.get(position).getAname(), R.id.item_list_txt);
        return vh;
    }

    @Override
    public int getItemViewType(int position) {
        return super.getItemViewType(position);
    }
}
